home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / enlightenment / e_error.h < prev    next >
C/C++ Source or Header  |  2006-01-09  |  782b  |  35 lines

  1. /*
  2.  * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
  3.  */
  4. #ifdef E_TYPEDEFS
  5.  
  6. #define print0(x, args...)      x ,print1(## args)
  7. #define e_error_message_show(args...) \
  8. { \
  9.    char __tmpbuf[4096]; \
  10.  \
  11.    snprintf(__tmpbuf, sizeof(__tmpbuf), ##args); \
  12.    e_error_message_show_internal(__tmpbuf); \
  13. }
  14.  
  15. #define e_error_dialog_show(title, args...) \
  16. { \
  17.    char __tmpbuf[4096]; \
  18.  \
  19.    snprintf(__tmpbuf, sizeof(__tmpbuf), ##args); \
  20.    e_error_dialog_show_internal(title, __tmpbuf); \
  21. }
  22.  
  23. #else
  24. #ifndef E_ERROR_H
  25. #define E_ERROR_H
  26.  
  27. EAPI void e_error_message_show_internal(char *txt);
  28. EAPI void e_error_dialog_show_internal(char *title, char *txt);
  29.  
  30. EAPI void e_error_gui_set(int on);
  31. EAPI void e_error_message_manager_show(E_Manager *man, char *title, char *txt);
  32.     
  33. #endif
  34. #endif
  35.